package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Movement;
import com.tanhua.model.vo.PageResult;

import java.util.List;

public interface MovementApi {

    //    发布动态
    void publish(Movement movement);

    //查询个人动态
    PageResult findByUserId(Long userId, Integer page, Integer pagesize);

    //查询好友动态
    List<Movement> findFriendMovements(Integer page, Integer pagesize, Long userId);

    //随机获取多条数据
    List<Movement> randomMovements(Integer counts);

    //根据pid数组查询动态
    List<Movement> findMovementsByPids(List<Long> pids);

    //查询单条动态
    Movement findById(String movementId);
}